e18db0385087cbf142a6bd53f8c5cf25b329991d,framework/minilang/src/org/ofbiz/minilang/method/envops/CheckErrors.java,CheckErrors,exec,#MethodContext#,64
Before Change
public boolean exec(MethodContext methodContext) throws MiniLangException {
if (methodContext.getMethodType() == MethodContext.EVENT) {
List<Object> messages = methodContext.getEnv(this.simpleMethod.getEventErrorMessageListName());
if (messages != null && messages.size() > 0) {
methodContext.putEnv(this.simpleMethod.getEventResponseCodeName(), getErrorCode(methodContext));
return false;
}
} else {
After Change
List<Object> messages = methodContext.getEnv(this.errorListNameFse.expandString(methodContext.getEnvMap()));
if (messages != null && messages.size() > 0) {
if (methodContext.getMethodType() == MethodContext.EVENT) {
methodContext.putEnv(this.simpleMethod.getEventResponseCodeName(), getErrorCode(methodContext));
} else {
methodContext.putEnv(this.simpleMethod.getServiceResponseMessageName(), getErrorCode(methodContext));
}